<!--异步组件-->
<script setup lang="ts">
import {axios} from '../server/axios'

interface Data {
  data: {
    name: string,
    age: number,
    url: string,
    desc: string
  }
}

const {data} = await axios.get<Data>('./data.json')
</script>

<template>
  测试文字
  <div class="sync">
    <div class="sync-content">
      <div><img :src="data.url"></div>
      <div class="sync-pop">
        <div>{{ data.name }}</div>
        <div>&nbsp;{{ data.name }}</div>
      </div>
    </div>
    <hr>
    <div>{{ data.desc }}</div>
  </div>
</template>

<style scoped lang="scss">

</style>